from alipay import AliPay
from . import settings

alipay = AliPay(
    appid=settings.APPID,
    app_notify_url=settings.APP_NOTIFY_URL,  # post回调地址，公网地址，默认回调url
    app_private_key_string=settings.APP_PRIVATE_KEY_STRING,
    alipay_public_key_string=settings.ALIPAY_PUBLIC_KEY_STRING,
    sign_type="RSA2",  # RSA 或者 RSA2
    debug=True,  # 默认False
)
